cmake_minimum_required(VERSION 3.2 FATAL_ERROR)

project(zividSDK)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14" )   #设置c++编译器

set(ZIVID_VERSION 2.2.0) ####
find_package(PCL  REQUIRED)
find_package(Zivid ${ZIVID_VERSION} COMPONENTS Core REQUIRED)
include_directories(${PCL_INCLUDE_DIRS}) 
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable(zividSDK test.cpp)
add_library(zividcamera  zividcamera.cpp)
target_link_libraries(zividSDK ${PCL_LIBRARIES})
target_link_libraries(zividSDK  zividcamera)
target_link_libraries(zividSDK  Zivid::Core)




